home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-01 / pdcurs21.zip / NONPORT.ZIP / BORDER.C next >
Text File  |  1992-11-21  |  1KB  |  42 lines

  1. #define        CURSES_LIBRARY  1
  2. #include <curses.h>
  3. #undef border
  4.  
  5. #ifndef        NDEBUG
  6. char *rcsid_border = "$Header: c:/curses/nonport/RCS/border.c%v 2.0 1992/11/15 03:18:25 MH Rel $";
  7. #endif
  8.  
  9.  
  10.  
  11.  
  12. /*man-start*********************************************************************
  13.  
  14.   border()     - sets the border characters in the stdscr window.
  15.  
  16.   PDCurses Description:
  17.        This routine sets the border characters for stdscr.
  18.  
  19.        WARNING:
  20.                Don't make this a call to wborder() - it would
  21.                require too much stack for parameters.
  22.        
  23.   PDCurses Return Value:
  24.        This function returns OK upon success otherwise ERR is returned.
  25.  
  26.   PDCurses Errors:
  27.        It is an error for stdscr to be a NULL pointer.
  28.  
  29.   Portability:
  30.        PDCurses        int border( chtype l,  chtype r,  chtype t,  chtype b,
  31.                                    chtype tl, chtype tr  chtype bl, chtype br );
  32.  
  33. **man-end**********************************************************************/
  34.  
  35. int    border(chtype l,chtype r,chtype t,chtype b,chtype tl,chtype tr,chtype bl,chtype br)
  36. {
  37.        if (stdscr == (WINDOW *)NULL)
  38.                return( ERR );
  39.  
  40.        return( wborder( stdscr, l, r, t, b, tl, tr, bl, br ) );
  41. }
  42.